package com.rxyb.hongyu.utils;

import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * @author duyh
 * @date 2020/6/11
 */
@Service
public class FastDFSClient {

    public String upload2FastDFS(byte[] fileBytes, String fileExtName) {
        return "/localhost/aaaa.jpg";
    }

    public String upload2FastDFS(String localFilePath, String fileExtName) {
        return "/localhost/aaaa.jpg";
    }

    public void deleteFromFastDFS(String dfsKey) {

    }

    public byte[] downFile(String filePath) throws IOException {
        return null;
    }
}
